import time,unittest
from selenium import webdriver
from Page.Page import Page
from Page.Page2 import Page2

class TestCase(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Edge()

    def tearDown(self):
        time.sleep(3)
        self.driver.quit()

    def test_01(self):
        po = Page(self.driver)
        po.luoji_A3mall()

    def test_02(self):
        po = Page2(self.driver)
        po.luoji_A3mall()
        time.sleep(3)
        po.shouy()
        po.search()
        time.sleep(1)
        po.searchbtn()
        po.img()
        time.sleep(3)
        print(po.dy3())
        po.buy()
        time.sleep(2)
        po.address()
        po.next()
        time.sleep(3)
